{#
    basic/searchbox.html
    ~~~~~~~~~~~~~~~~~~~~

    Sphinx sidebar template: quick search box.

    :copyright: Copyright 2017 Cask Data, Inc.
    :license: Apache 2.0 License, see LICENSE for details.
#}
{%- if pagename != "search" and builder != "singlehtml" %}
  {# Force all pages to use top-level search index #}
  {%- if html_short_title_toc != 'CDAP Documentation' %}
    {%- set search_root = '../' %}
  {%- endif %}
<div id="searchbox" style="display: none" role="search">
  <h3><a href="{{ search_root }}{{ pathto('search') }}">Search</a></h3>
    <form class="search" action="{{ search_root }}{{ pathto('search') }}" method="get">
      <input type="text" name="q" />
      <input type="submit" value="{{ _('Go') }}" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or phrase
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
{%- endif %}
